package com.hsylient.Proxypattern.dynamicproxy;

public class TestDynamicProxy {
    public static void main(String[] args) {
        // 被代理对象
        Working working = new Worker();
        // 代理对象
        Working worker = (Working)new WorkerProxy(working).getProxyInstance();
        // 代理对象执行方法
        worker.work();
    }
}
